#include <stdio.h>
#include <string.h>


size_t reverseBits(size_t n)
{
    size_t m = 0;
    for(int i = 0;i < 32;i++)
    {
        m |= (n & 1) << (31 - i);
        n >>= 1;
    }
    return m;
}

int main()
{
    size_t n = 00000010100101000001111010011100;
    printf("%ld\n", reverseBits(n));
    return 0;
}
